package com.acme.exchange.domain;

import java.util.HashMap;
import java.util.Set;

public class Exchange {
	private Set <String> tickers;
	private HashMap <String, OpenBook> exchange;
	
	private static Exchange instance = new Exchange();
	
	public Exchange() {		
		exchange = new HashMap<String, OpenBook>();
		
		exchange.put("MSFT", new OpenBook());
		exchange.put("EESR", new OpenBook());
		exchange.put("WBD", new OpenBook());
		exchange.put("SBER", new OpenBook());
		exchange.put("JAVA", new OpenBook());
		exchange.put("BUD", new OpenBook());
		exchange.put("DNA", new OpenBook());
		exchange.put("LVB", new OpenBook());
		exchange.put("XON", new OpenBook());
		exchange.put("LUV", new OpenBook());
		
		tickers = exchange.keySet();
	}
	
	public static Exchange getExchange() {
		return instance;
	}
	
	public HashMap <String, OpenBook> getExchangeOpenBooks(){
		return exchange;
	}
}
